package com.demo.springbootdemo.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("分页查询参数")
public class PageQuery {

    @ApiModelProperty(value = "当前页码", example = "1")
    private Integer pageNo;

    @ApiModelProperty(value = "分页大小", example = "20")
    private Integer pageSize;

    @ApiModelProperty(value = "排序字段", example = "balance")
    private String orderBy;

    @ApiModelProperty(value = "是否升序", example = "1")
    private Boolean isAsc = false;
}
